package com.yysjyr.logisticssystem.workbench.service.impl;

import com.yysjyr.logisticssystem.workbench.entity.Address;
import com.yysjyr.logisticssystem.workbench.mapper.AddressMapper;
import com.yysjyr.logisticssystem.workbench.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AddressServiceImpl implements AddressService {

    @Autowired
    private AddressMapper addressMapper;
    @Override
    public List<Address> queryListByUserId(String userId) {
        return addressMapper.selectAddressByUserId(userId);
    }
}
